# -*- coding: utf-8 -*-
# https://blog.csdn.net/weixin_52040868
# 公众号：测个der
# 微信：qing_an_an

import sys
from PyQt5.QtWidgets import *

class WIN(QWidget):
    def __init__(self):
        super(WIN, self).__init__()
        self.initUI()

    def initUI(self):
        title = QLabel("标题")
        author = QLabel("提交人")
        review = QLabel("提交内容")

        titleEdit = QLineEdit()
        authorEdit = QLineEdit()
        reviewEdit = QTextEdit()

        grid = QGridLayout()
        grid.setSpacing(10)

        grid.addWidget(title,1,0)
        grid.addWidget(titleEdit,1,1)

        grid.addWidget(author,2,0)
        grid.addWidget(authorEdit,2,1)

        grid.addWidget(review,3,0)
        grid.addWidget(reviewEdit,3,1,5,1)

        self.setGeometry(300,300,350,300)

        self.setLayout(grid)

if __name__ == '__main__':
    app = QApplication(sys.argv)
    win = WIN()
    win.show()
    sys.exit(app.exec_())